Conversation
|
Thanks, that looks great! I'm not sure how you're handling this, you seem to running both fixedLoop() and loop() inside your tick() method which you pass to FuncAnimation. |
|
That's one thing I couldn't figure out how to do. The animator uses some I didn't get around to experimenting with just viewing and not saving the On Sunday, March 8, 2015, arindam1993 notifications@github.com wrote:
|
|
@ckchow, is it possible to use the TimedAnimation method at the bottom of this documentation page? Maybe that would help get a variable frame rate (at least the examples seem to imply this). |
|
If you're still interested in frameskipping, I've found a sorta-solution. I just call self.fixedloop() a bunch of times before each render. I can push that change on this branch since it is only a few lines. However, I'm not sure what to do with respect to changing the FPS the renderer wants - if you change the FPS kwarg too much then the video doesn't work. I'm not sure about TimedAnimation. It looks like internally it expects a streaming event source that it samples from on a timer, and to provide that we would have to make the simulator itself provide frames at a uniform 30fps in realtime. |
Switched to using matplotlib's animation module.